package com.xm.singleton;

/**
 * 懒汉式（Lazy Initialization，线程不安全版）
 */
public class BLazy {
    private static BLazy instance;
    private BLazy() {}

    public static BLazy getInstance() {
        if (instance == null) {
            instance = new BLazy();
        }
        return instance;
    }
}
